package com.atguigu.spring.beans.annotation.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atguigu.spring.beans.annotation.repository.UserRepository;

/**
 * @Service: 标识服务层(业务层)组件
 * 
 * @author liuxin
 *
 */
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserRepository userRepository;
	
	@Override
	public void add() {
		System.out.println("UserServiceImpl add...");
		userRepository.save();
	}

}
